package org.darkforest.model;

import org.apache.commons.lang3.StringUtils;
import org.darkforest.common.util.Page;

/**
 * Created by Justin on 15/2/7.
 */
public class GoodSearchBean extends Page<Goods> {
    private String goodsName;

    private String orderByColum; //排序字段

    private String orderByType;// 排序方式 升序？降序？

    private Integer goodsClassId;

    private Integer brandId;

    private Integer goodsType;

    private Integer goodsVerify;

    private Integer goodsState;

    private String startTime;

    private String endTime;

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
    }

    public Integer getGoodsVerify() {
        return goodsVerify;
    }

    public void setGoodsVerify(Integer goodsVerify) {
        this.goodsVerify = goodsVerify;
    }

    public Integer getGoodsState() {
        return goodsState;
    }

    public void setGoodsState(Integer goodsState) {
        this.goodsState = goodsState;
    }

    public static final GoodSearchBean DEFAULT_ALL_GOODS_PARAM = new GoodSearchBean(StringUtils.EMPTY, 1, 20, null);

    public GoodSearchBean() {
    }


    public GoodSearchBean(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getOrderByColum() {
        return orderByColum;
    }

    public void setOrderByColum(String orderByColum) {
        this.orderByColum = orderByColum;
    }

    public GoodSearchBean(String goodsName, Integer page, Integer pageSize,Integer goodsClassId) {
        this.goodsName = goodsName;
        this.setStart(page);
        this.setPageSize(pageSize);
        this.setGoodsClassId(goodsClassId);

    }
    public GoodSearchBean(Integer page, Integer pageSize, Integer goodsClassId,String orderByColum,String orderByType,Integer brandId) {
//        this.goodsName = goodsName;
        this.setStart(page);
        this.setPageSize(pageSize);
        this.setGoodsClassId(goodsClassId);
        this.setOrderByColum(orderByColum);
        this.setOrderByType(orderByType);
        this.setBrandId(brandId);
    }



    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsClassId() {
        return goodsClassId;
    }

    public void setGoodsClassId(Integer goodsClassId) {
        this.goodsClassId = goodsClassId;
    }

    public String getOrderByType() {
        return orderByType;
    }

    public void setOrderByType(String orderByType) {
        this.orderByType = orderByType;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }
}
